package demo8.demo1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Text {
    public static void main(String[] args) {
        ApplicationContext a = new AnnotationConfigApplicationContext(SpringConfig.class);
        dept bean = a.getBean(dept.class);
        bean.hello();
    }
}
